package cn.bgs.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;


import java.util.List;
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class Dept {

  private Integer did;
  private String dname;

  //一对多映射关系
  private List<Emp> emps;

  @Override
  public String toString() {
    return "Dept{" +
            "did=" + did +
            ", dname='" + dname + '\'' +
            ", emps=" + emps +
            '}';
  }

  public List<Emp> getEmps() {
    return emps;
  }

  public void setEmps(List<Emp> emps) {
    this.emps = emps;
  }



  public String getDname() {
    return dname;
  }

  public void setDname(String dname) {
    this.dname = dname;
  }

  public Integer getDid() {
    return did;
  }

  public void setDid(Integer did) {
    this.did = did;
  }
}
